package top.tupobi.zing.utils;

import android.annotation.SuppressLint;

import java.text.SimpleDateFormat;
import java.util.Date;

public class UT {
    public static boolean isInSameDay(String dateStr1) {
        @SuppressLint("SimpleDateFormat") String dateStr2 = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
        try {
            if (dateStr2.equals(dateStr1.substring(0, 10))) {
                return true;
            } else {
                return false;
            }
        } catch (Exception e) {
            return false;
        }
    }
}
